<style>
    .title {
        font-weight: bold;
        font-size: 22px;
    }
</style>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="title">客户信息</div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">业务类型:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[customer_identity]', ['0'=>'个人', '1'=>'公司'],0)}
        </div>
    </div>

    <div id="identity">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">客户姓名:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-full_name" placeholder="{:__('Please enter')}客户姓名" data-rule="required"
                       class="form-control" name="row[full_name]" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">身份证号:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-idnumber" placeholder="{:__('Please enter')}身份证号" data-rule=""
                       class="form-control" name="row[idnumber]" type="text">
            </div>
        </div>
    </div>

    <input id="c-customer_type" data-rule="required" class="form-control" name="row[customer_type]"
           type="hidden" value="0">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" data-rule="required;mobile" placeholder="{:__('Please enter')}{:__('mobile')}"
                   class="form-control" name="row[mobile]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Corporate_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[corporate_type]', ['0'=>__('IndividualBusinesses'),
            '1'=>__('SmallScalTaxpayer'),'2'=>__('GeneralTaxpayer')])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Region')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-region" data-toggle="city-picker" data-rule="required" class="form-control" name="row[region]"
                   type="text">
        </div>
    </div>
    <hr/>

    <div class="title">服务信息</div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">服务内容:</label>
        <div class="col-xs-12 col-sm-10">
            <select id="c-service" class="form-control selectpicker" data-live-search="true" multiple=""
                    name="row[service_ids][]">
                {foreach name="service" item="vo"}
                <option value="{$vo.id}">{$vo.service_name}</option>
                {/foreach}
            </select>
            <div id="select-privew"></div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">服务说明:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[service_desc]" class="form-control" data-rule="required" rows="5" data-tip=""
                      placeholder="请输入服务说明"></textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">付款方式:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[pay_type]', ['1'=>'转账汇款','2'=>'现金'],1)}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">付款截图:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::image('row[pay_pic]', '', ['data-rule'=>''])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
